// DOI任务类型
export interface DoiTask {
  task_id: string;
  file_name?: string;
  start_time: string;
  end_time?: string;
  status: 'pending' | 'processing' | 'completed' | 'failed';
  total_dois: number;
  completed_dois: number;
  success_dois: number;
  failed_dois: number;
  progress: number;
  download_url?: string;
  dois: DoiItem[];
  task_type?: 'DOI' | 'JiangSu'; // 添加任务类型字段
}

// DOI项目类型
export interface DoiItem {
  doi: string;
  title?: string;
  journal?: string;
  year?: string;
  status?: 'pending' | 'downloading' | 'success' | 'error';
  pdf_url?: string;
  metadata?: DoiMetadata;
}

// DOI元数据类型
export interface DoiMetadata {
  title?: string;
  authors?: string[];
  journal?: string;
  year?: string;
  abstract?: string;
}

// 通知类型
export interface Notification {
  id: string;
  type: 'success' | 'error' | 'info' | 'warning';
  title: string;
  message: string;
  timeout: number;
}